package Pojo;

import java.util.Objects;

public class OrderStatus {
    private Integer order_status_id;//订单状态id
    private String order_status_name;//订单状态名称

    @Override
    public String toString() {
        return "OrderStatus{" +
                "order_status_id=" + order_status_id +
                ", order_status_name='" + order_status_name + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        OrderStatus that = (OrderStatus) o;
        return Objects.equals(order_status_id, that.order_status_id) &&
                Objects.equals(order_status_name, that.order_status_name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(order_status_id, order_status_name);
    }

    public OrderStatus() {
    }

    public Integer getOrder_status_id() {
        return order_status_id;
    }

    public void setOrder_status_id(Integer order_status_id) {
        this.order_status_id = order_status_id;
    }

    public String getOrder_status_name() {
        return order_status_name;
    }

    public void setOrder_status_name(String order_status_name) {
        this.order_status_name = order_status_name;
    }

    public OrderStatus(Integer order_status_id, String order_status_name) {
        this.order_status_id = order_status_id;
        this.order_status_name = order_status_name;
    }
}
